package com.springboot.project.service.imp;

import com.springboot.project.dao.UserMapper;
import com.springboot.project.modal.User;
import com.springboot.project.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author liupenghui
 * @date 2018/7/12
 * @desc：
 */
@Service
public class UserServiceImp implements IUserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public User getUser(Integer id) {
        return userMapper.selectByPrimaryKey(String.valueOf(id));
    }
}
